<!--饿了么会员详情里面的会员说明-->
<template>
  <div class="meberhyt_y">
    <div class="meberhyt_ysdiv1">
      {{ lishyt_hyt[0] }}{{ lishyt_hyt[1] }}{{ lishyt_hyt[2] }}
    </div>
    <div class="meberhyt_ysdiv2">
      <p>{{ lishyt_hyt[3] }}{{ lishyt_hyt[4] }}</p>
      <div>{{ lishyt_hyt[5] }}</div>
      <div class="p3_hyts">
        {{ lishyt_hyt[6] }}{{ lishyt_hyt[7] }}{{ lishyt_hyt[8] }}
      </div>
      <p>{{ lishyt_hyt[9] }}{{ lishyt_hyt[10] }}</p>
      <div class="p3_hyts">{{ lishyt_hyt[11] }}</div>
      <p>{{ lishyt_hyt[12] }}{{ lishyt_hyt[13] }}</p>
      <div>{{ lishyt_hyt[14] }}</div>
      <div>{{ lishyt_hyt[16] }}</div>
      <div class="p3_hyts">{{ lishyt_hyt[18] }}</div>
      <p>{{ lishyt_hyt[19] }}{{ lishyt_hyt[20] }}</p>
      <div class="p3_hyts">在线购买：饿了么App>我的>饿了么会员卡</div>
      <p>{{ lishyt_hyt[21] }}{{ lishyt_hyt[22] }}</p>
      <div>{{ lishyt_hyt[23] }}</div>
      <div class="p3_hyts">{{ lishyt_hyt[24] }}</div>
    </div>
  </div>
</template>

<script>
export default {
  data: function() {
    return {
      lishyt_hyt: []
    };
  },
  created() {
    this.$axios
      .get("https://elm.cangdu.org/v3/profile/explain", {})
      .then(res => {
        // console.log(res.data.memberTimesContent.split(" "));
        let memberTimesContent = res.memberTimesContent.split(" ");
        // console.log(couponContent);
        let rega = /^[(*)]$/;
        for (const key in memberTimesContent) {
          if (!rega.test(memberTimesContent[key])) {
            if (!memberTimesContent[key].match(/#/g)) {
              if (!memberTimesContent[key].match(/>/g)) {
                this.lishyt_hyt.push(memberTimesContent[key]);
                // console.log(memberTimesContent[key]);
              }
            }
          }
        }
      })
      .catch(err => console.log(err));
  }
};
</script>

<style lang="less" >
.meberhyt_y {
  .meberhyt_ysdiv1 {
    width: 262px;
    margin: 20px auto;
    font-size: 14px;
    color: #333333;
  }
  .meberhyt_ysdiv2 {
    width: 342px;
    margin: 0 auto;
    p {
      color: #000000;
      font-size: 16px;
      margin-bottom: 5px;
    }
    div {
      font-size: 14px;
      color: #666666;
    }
    .p3_hyts {
      margin: 5px 0 10px;
    }
  }
}
</style>
